package com.tanhua.server.utils;

import com.tanhua.common.pojo.User;

/**
 * Created by 景银泰
 * date 2020-11-14 19:41
 * Description :
 * Version :
 */
public class UserThreadLocal {
    private static final ThreadLocal<User> LOCAL = new ThreadLocal<>();

    private UserThreadLocal(){

    }
    public static void set(User user) {
        LOCAL.set(user);
    }

    public static User get() {
        return LOCAL.get();
    }
}
